package com.cooriproject.basemanage.service;

import com.cooriproject.basemanage.entity.ItemInfo;
import com.cooriproject.basemanage.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ItemService{

    int itemInsertApplicant(@Param("itemCode")String itemCode,@Param("itemName")String itemName,@Param("itemMinNum")Integer itemMinNum,@Param("itemBrand")String itemBrand,@Param("itemModel")String itemModel,@Param("itemSpecifications")String itemSpecifications,@Param("itemType")Integer itemType,@Param("itemDisaudit")Integer itemDisaudit,@Param("itemApplicantUserId")Integer itemApplicantUserId,@Param("itemCon")Integer itemCon);

    List<ItemInfo> selectByPrimaryKey(@Param("itemId")Integer itemId);

    int deleteByPrimaryKey(@Param("itemId")Integer itemId, @Param("userId")Integer userId);

    int updateByPrimaryKeySelective(@Param("userId")Integer userId,@Param("itemId")Integer itemId,@Param("itemCode")String itemCode,@Param("itemName")String itemName,@Param("itemMinNum")Integer itemMinNum,@Param("itemBrand")String itemBrand,@Param("itemModel")String itemModel,@Param("itemSpecifications")String itemSpecifications,@Param("itemType")Integer itemType,@Param("itemDisaudit")Integer itemDisaudit,@Param("itemApplicantUserId")Integer itemApplicantUserId,@Param("itemApproverStatus") Integer itemApproverStatus,@Param("itemApproverUserId")Integer itemApproverUserId,@Param("itemUpdatedUserId")Integer itemUpdatedUserId, @Param("itemCreatedTime")String itemCreatedTime,@Param("itemUpdatedTime")String itemUpdatedTime,@Param("itemCon")Integer itemCon);

    List<ItemInfo> selectAll();
}
